<div class="cf" id="content" style="margin-left:0px;">				
				<div class="box">
					<div class="box-top"></div>
					<div class="box-content">
						<div class="head">
							<h2>{$post_title}</h2>							
						</div>
						<div class="sect consult-list">
							{* 留言列表 *}
							<ul class="list" style="padding:0px 20px;">
								{foreach from=$message_list item=message_item key=key}
									<li name="consult-entry-{$message_item.id}" id="consult-entry-{$message_item.id}" {if $key mod 2 eq 0}class="alt"{/if}>
										<div class="item">
											<p class="user">
												<strong>{function name="get_user_name" value=$message_item.user_id} </strong>
												<span>{function name="to_date" value=$message_item.create_time}</span>
											</p>
											<div class="clear"></div>
											<p class="text">
												{function name="nl2br" value=$message_item.content}
											</p>
											{if $message_item.admin_reply neq ''}
											<p class="reply">
											<strong>{$LANG.REPLY}：</strong>{function name="nl2br" value=$message_item.admin_reply}<br>
											</p>	
											{/if}									
										</div>
									</li>
								{/foreach}							
							</ul>
							{* 留言列表 *}
							
							<div class="blank clear"></div>							
							<div class="pages">{$pages}</div>	
						</div>
					</div>
					<div class="box-bottom"></div>
				</div>
</div>
<div class="blank"></div>
<div class="box clear">
						<div class="box-top"></div>
						<div class="box-content">
							<form method="post" id="consult-add-form" action="{function name="url_pack" value="message#add"}" name="message"  style="padding:0px 20px;">
							<div name="consult-form-head" id="consult-form-head" class="head">
								<h2>{$post_title}</h2>
								{if $message_group}
								<span>
									{foreach from=$message_group item=type key=key}
										<label>{$type}:<input type="radio" name="message_group" value="{$type}" {if $key eq 0}checked="checked"{/if} /></label>
									{/foreach}
								</span>
								{/if}
							</div>
							<div class="sect consult-form">
								{if $user_info}
								
									<textarea name="content" rows="5" cols="60" class="f-textarea"></textarea>
									<div class="blank"></div>
									<p class="commit">
										<input type="hidden" value="{$rel_table}" name="rel_table">
										<input type="hidden" value="{$rel_id}" name="rel_id">
										<input type="submit" class="formbutton" name="commit" value="{$LANG.OK_POST}">
									</p>
								
								{else}
								{$message_login_tip}
								{/if}
							</div>
						</div>
						</form>
						<div class="box-bottom"></div>
</div>
<script type="text/javascript">
	$(document).ready(function(){
		$("#consult-add-form").bind("submit",function(){
			var msg = $.trim(($("#consult-add-form").find("textarea[name='content']").val()));
			if(msg == '')
			{
				$.showErr("{$LANG.MESSAGE_CONTENT_EMPTY}");
				return false;
			}
			
		});
	});
</script>
